<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
     <!-- 1 准备容器 
        2.引包
        3.创建实例
        4.添加配置项，完成渲染 
    -->
    <div id="app">
        <!-- 页面 -->
       <h3>水果店1</h3>
       <ul>
        <li v-for="item  in list">{{item}}</li>
       </ul>
       <h3>水果店2</h3>
       <ul>
        <li v-for="(item,index)  in list">{{item}}-{{index}}</li>
       </ul>
    </div>
    <!-- vue2 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.13/vue.js"></script>
    <!-- vue3
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->
    <script>
        const app = new Vue({
            //通过el 配置选择器，指定Vue 管理那个div
            el: "#app",
            data:{//通过Data 提供数据
              list:["西瓜","苹果","鸭梨","榴莲"]
            }
        });
    </script>
</body>
</html>